package com.yuanfeng.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 快递鸟快递表
 * @TableName base_kdniao_expresss
 */
@TableName(value ="base_kdniao_expresss")
@Data
public class BaseKdniaoExpresssEntity implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 快递名
     */
    private String expressName;

    /**
     * 
     */
    private String expressPinyin;

    /**
     * 快递状态
     */
    private Integer expressState;

    /**
     * 操作人姓名
     */
    private Integer customerName;

    /**
     * 操作人密码
     */
    private Integer customerPwd;

    /**
     * 字码
     */
    private Integer monthCode;

    /**
     * 发送码
     */
    private Integer sendSite;

    /**
     * 
     */
    private Integer sendStaff;

    /**
     * 
     */
    private Integer logisticCode;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseKdniaoExpresssEntity other = (BaseKdniaoExpresssEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getExpressName() == null ? other.getExpressName() == null : this.getExpressName().equals(other.getExpressName()))
            && (this.getExpressPinyin() == null ? other.getExpressPinyin() == null : this.getExpressPinyin().equals(other.getExpressPinyin()))
            && (this.getExpressState() == null ? other.getExpressState() == null : this.getExpressState().equals(other.getExpressState()))
            && (this.getCustomerName() == null ? other.getCustomerName() == null : this.getCustomerName().equals(other.getCustomerName()))
            && (this.getCustomerPwd() == null ? other.getCustomerPwd() == null : this.getCustomerPwd().equals(other.getCustomerPwd()))
            && (this.getMonthCode() == null ? other.getMonthCode() == null : this.getMonthCode().equals(other.getMonthCode()))
            && (this.getSendSite() == null ? other.getSendSite() == null : this.getSendSite().equals(other.getSendSite()))
            && (this.getSendStaff() == null ? other.getSendStaff() == null : this.getSendStaff().equals(other.getSendStaff()))
            && (this.getLogisticCode() == null ? other.getLogisticCode() == null : this.getLogisticCode().equals(other.getLogisticCode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getExpressName() == null) ? 0 : getExpressName().hashCode());
        result = prime * result + ((getExpressPinyin() == null) ? 0 : getExpressPinyin().hashCode());
        result = prime * result + ((getExpressState() == null) ? 0 : getExpressState().hashCode());
        result = prime * result + ((getCustomerName() == null) ? 0 : getCustomerName().hashCode());
        result = prime * result + ((getCustomerPwd() == null) ? 0 : getCustomerPwd().hashCode());
        result = prime * result + ((getMonthCode() == null) ? 0 : getMonthCode().hashCode());
        result = prime * result + ((getSendSite() == null) ? 0 : getSendSite().hashCode());
        result = prime * result + ((getSendStaff() == null) ? 0 : getSendStaff().hashCode());
        result = prime * result + ((getLogisticCode() == null) ? 0 : getLogisticCode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", expressName=").append(expressName);
        sb.append(", expressPinyin=").append(expressPinyin);
        sb.append(", expressState=").append(expressState);
        sb.append(", customerName=").append(customerName);
        sb.append(", customerPwd=").append(customerPwd);
        sb.append(", monthCode=").append(monthCode);
        sb.append(", sendSite=").append(sendSite);
        sb.append(", sendStaff=").append(sendStaff);
        sb.append(", logisticCode=").append(logisticCode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}